package com.yuhanginfo.modules.sys.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.yuhanginfo.common.service.CrudService;
import com.yuhanginfo.modules.sys.entity.FreeWaybill;
import com.yuhanginfo.modules.sys.dao.FreeWaybillDao;

/**
 * 包邮设置Service
 * @author yangs
 * @version 2017-10-09
 */
@Service
@Transactional(readOnly = true)
public class FreeWaybillService extends CrudService<FreeWaybillDao, FreeWaybill> {
    @Autowired
    private FreeWaybillDao freeWaybillDao;

	
	@Transactional(readOnly = false)
	public void save(FreeWaybill freeWaybill) {
		super.save(freeWaybill);
	}
	
	@Transactional(readOnly = false)
	public void delete(FreeWaybill freeWaybill) {
		super.delete(freeWaybill);
	}

	public List<FreeWaybill> selectAddress(FreeWaybill freeWaybill) {
		
		return freeWaybillDao.selectAddress(freeWaybill);
	}
	
	public List<FreeWaybill> selectAll() {
		
		return freeWaybillDao.selectAll();
	}

	public FreeWaybill getWebFreeWaybillByArea(FreeWaybill freeWaybill) {
	
		return freeWaybillDao.getWebFreeWaybillByArea(freeWaybill);
	}
	
}